package com.cuif.aop.advice;

import java.lang.reflect.Method;

import org.springframework.aop.ThrowsAdvice;

/**
 * 异常通知
 */
public class ExceptionAdvice implements ThrowsAdvice{

	public void afterThrowing(Method m,Object[] os,Object target,Throwable throwable){
		System.out.println(m);
		System.out.println(target);
		System.out.println("出事了!" + throwable.toString());
	}
	
}
